* {
    margin: 0;
    padding: 0;
}
#b_nav /* format global de la barre de navigation*/
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #a31f34;
    padding: 10px 40px;
    font: 20px Arial;
    position: relative;
    top: 0; /* Pour partir de zero sans prendre en compte les marges par défaut*/
    left: 0;       
}

#b_nav img /* arrondir l'image du logo*/
{
    border-radius: 8px;
}
nav ul   /*affichage des listes*/
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 100px;
}
nav a /* format des liens*/
{
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover /* animation quand on passe la souris dessous*/
{
    text-decoration: underline;
    text-decoration-color: red;
}
body /* propriete global du body*/
{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}
main /*position de la partie principal*/
{
    padding: 120px 10% 60px 10%; /* Haut, droite, bas, gauche */
}

/*Titre*/
h1 {
    font-size: 2.5em;/* Taille du texte */
    color: darkred;
    text-align: center;
    margin-bottom: 40px; /* Espace en dessous */
}

/*Cartes sur la vie étudiante*/
.campus-section {
    display: grid;/* Utilise une grille */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colonnes adaptatives */
    gap: 30px; /* Espace entre les cartes */
    margin-bottom: 60px; /* Espace en dessous de la section */
}

.card {
    background-color: white; 
    border-radius: 20px; /* Bords arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    padding: 25px; /* Espacement interne */
    transition: transform 0.3s ease; /* Animation fluide */
}

.card:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
}

.card img {
    width: 100%;
    border-radius: 15px; /* Bords arrondis */
    margin-bottom: 15px; /* Espace en dessous de l'image */
}

.card h2 { /* Titres des cartes */
    color: darkred; /* Couleur du texte */
    font-size: 1.5em; /* Taille du texte */
    margin-bottom: 10px; /* Espace en dessous */
}

.card p {
    color: #333;
    font-size: 1em; /* Taille du texte */
}

/*bloc  témoignage*/
.testimonials { 
    background-color: #fff; /* Fond blanc */
    padding: 50px 20px; /* Espacement interne */
    border-radius: 15px; /* Bords arrondis */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre légère */
}

.testimonials h2 {
    text-align: center; /* Centrage du texte */
    color: darkred; /* Couleur du texte */
    margin-bottom: 30px; /* Espace en dessous */
}

.testimonial { 
    background: #f8f8f8;    /* Fond gris clair */
    margin: 20px auto; /* Marge automatique horizontale et 20px verticale */
    padding: 20px; /* Espacement interne */
    border-radius: 15px; /* Bords arrondis */
    max-width: 700px; /* Largeur maximale */
    font-style: italic; /* Style italique */
}
/*footer*/
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 50px 40px 30px;
    margin-top: 80px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #A31F34;
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #A31F34;
    padding-bottom: 10px;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-section em {
    color: #A31F34;
    font-style: italic;
}

/* Liens du footer */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #A31F34;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    background-color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-links a:hover {
    background-color: #8B0000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 0.95rem;
}

/*animation*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*defilement fluide*/
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) 
{
    header h1 /* Ajustement titre */
    {
        font-size: 1.5em;
    }
    
    
    
    table th, table td /* Réduction texte tableau */
    {
        font-size: 0.9em;
        padding: 8px;
    }
}